package net.ljh.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/*@Component
@ConfigurationProperties(prefix = "my")*/
public class My {

    private String name;
    private Integer age;
    private Map<String,Object> behavior;
    private List hobby;
    private Cat cat;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Map<String, Object> getBehavior() {
        return behavior;
    }

    public void setBehavior(Map<String, Object> behavior) {
        this.behavior = behavior;
    }

    public List getHobby() {
        return hobby;
    }

    public void setHobby(List hobby) {
        this.hobby = hobby;
    }

    public Cat getCat() {
        return cat;
    }

    public void setCat(Cat cat) {
        this.cat = cat;
    }

    @Override
    public String toString() {
        return "My{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", behavior=" + behavior +
                ", hobby=" + hobby +
                ", cat=" + cat +
                '}';
    }
}
